<?php

class phImageBuilderPluginConfiguration extends sfPluginConfiguration
{
  /**
  * @see sfPluginConfiguration
  */
  public function initialize()
  {
    // Register photo builder behavior
    sfPropelBehavior::registerMethods( 'imageBuilder', array( array( 'ImageBuilderBehavior', 'getPhotoPath' ) ) );
    sfPropelBehavior::registerMethods( 'imageBuilder', array( array( 'ImageBuilderBehavior', 'createThumb' ) ) );
    sfPropelBehavior::registerHooks( 'imageBuilder', array
    ( 
        ':delete:post' => array( 'ImageBuilderBehavior', 'postDelete' ),
        ':save:post'  => array( 'ImageBuilderBehavior', 'postSave' ),
    ));
  }
}